{extends file="./main.tpl"}
{block name=body}
<br /> <br />
<form name="orderTyoeForm" action="orderlist.php" method="post">
  <table align="center" border="1"  cellpadding="2" cellspacing="2">
    <tr>
      <td align="center" class="table1" colspan="4">
      	<select name="order" autofocus />
          {html_options options=$arrayOrder} 
        </select>  
      </td>
      <td class="table1" align="center" ><input type="submit" name="submit" value="Submit" class="button" /></td>
    </tr>
  </table>
</form>
  </br></br>
  <table align="center" border=2>
  <tr>
  	<th class="table1">Action</th>
    <th class="table1">Party Name</th>
    <th class="table1">Contact </th>
    <th class="table1">Date</th>
  </tr>
  {section name="sel" loop=$orderArray}
  <tr>
  	<td class="table2">
  	  <a href="orderDelete.php?partyId={$orderArray[sel].partyId}" onclick="return confirm('Sure to Delete?');"class="link">
  	    <img src="./images/deleteIco.png">
  	  </a>
  	</td>
    <td class="table2">{$orderArray[sel].partyName}</td>
    <td class="table2">{$orderArray[sel].contact1}</td>
    <td class="table2">{$orderArray[sel].billdate}</td>
  </tr>
  {/section}
</table>
{/block}